// 获取应用实例
const app = getApp<IAppOption>()

Page({
  data: {
    userInfo: {
      avatarUrl: '',
      nickName: ''
    },
    showDialog: false
  },
  onLoad() {},
  getUserInfo(e: any) {
    this.setData({
      userInfo: {
        avatarUrl: e.detail.userInfo.avatarUrl,
        nickName: e.detail.userInfo.nickName
      }
    })
  },
  handleJumpLog() {
    wx.navigateTo({
      url: '../logs/logs'
    })
  },
  handleShowDialog() {
    this.setData({ showDialog: true })
  },
  handleCloseDialog() {
    this.setData({ showDialog: false })
  },
  handleConfirmButtonTap() {
    this.handleCloseDialog()
    wx.showToast({ title: '点击确认按钮', duration: 1000 })
  }
})
